package com.agileboot.domain.app.product.db;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author DELL
 * @description 针对表【app_loan_product(贷款产品表)】的数据库操作Service实现
 * @createDate 2024-04-02 14:38:48
 */
@Service
public class AppLoanProductServiceImpl extends ServiceImpl<AppLoanProductMapper, AppLoanProductEntity> implements AppLoanProductService {

    @Override
    public AppLoanProductEntity findProduct(int id) {
        QueryWrapper<AppLoanProductEntity> query = new QueryWrapper<>();
        query.eq("product_id", id);

        return getOne(query);
    }
}




